package com.zhiche.lisa.bms.pojo.vo.common;

import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@ToString
public class CommonVO<T> implements Serializable {
    /**
     * 单独类型或值
     */
    private String typeVal;

    /**
     * key 数组
     */
    private String[] keys;

    /**
     * ids数组
     */
    private Long[] ids;

    /**
     * 对象集合
     */
    private List<T> entityParams;

    private Map<String, Object> condition;

    public String[] getKeys() {
        return keys;
    }

    public CommonVO setKeys(String[] keys) {
        this.keys = keys;
        return this;
    }

    public Long[] getIds() {
        return ids;
    }

    public CommonVO setIds(Long[] ids) {
        this.ids = ids;
        return this;
    }

    public List<T> getEntityParams() {
        return entityParams;
    }

    public CommonVO setEntityParams(List<T> entityParams) {
        this.entityParams = entityParams;
        return this;
    }

    public String getTypeVal() {
        return typeVal;
    }

    public CommonVO setTypeVal(String typeVal) {
        this.typeVal = typeVal;
        return this;
    }

    public Map<String, Object> getCondition() {
        return condition;
    }

    public CommonVO setCondition(Map<String, Object> condition) {
        this.condition = condition;
        return this;
    }
}
